<?php
//PingBuWang.Com
//Copyright (c) 2017~2099 http://www.pingbuwang.com All rights reserved.
namespace app\setting\tags;

use think\template\TagLib;

class TagMainmenu extends TagLib {

    protected $tags   =  [
        'get_list'      => ['attr' => 'value', 'close' => 0],
    ];

    public function tagGet_List($tag){
        $value = $tag['value'];

        $html = '<?php $'.$value.'= model("app\setting\model\Mainmenu")->getList(); ?> ';
        return $html;

    }

}
